package com.yidushishizijie.dao;

import com.yidushishizijie.entity.Student;

import java.util.List;
import java.util.Map;

public interface StudentDao {
    //查询所有的学生
    List<Student> selectStudents();

    //插入数据
    int insertStudent(Student student);

    //修改数据
    int updateStudent(Student student);

    //删除数据
    int deleteStudent(int id);

    List<Student> selectByNameAndAge(Map<String,Object> map);

    List<Student> selectUseResultMap(int age);
}
